Spread Windows Forms 10.0 Product Documentation
AddRange(String[]) Method
Example 


A specified collection added into the collection.
Adds text of the specified collection to the end of the collection.
Syntax
'Declaration
 
Public Overloads Sub AddRange( _
   ByVal texts() As String _
) 
'Usage
 
Dim instance As ListItemCollectionInfo
Dim texts() As String
 
instance.AddRange(texts)
public void AddRange( 
   string[] texts
)

Parameters

texts
A specified collection added into the collection.
Example
This example adds items to the list.
GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType gccombo = new GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType();
gccombo.DropDownStyle = ComboBoxStyle.DropDownList;           
gccombo.Items.AddRange(new string[] { "Feta", "Havarti", "Gruyere" });
fpSpread1.Sheets[0].Cells[1, 1].CellType = gccombo;
Dim gccombo As New GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType()
gccombo.DropDownStyle = ComboBoxStyle.DropDownList
gccombo.Items.AddRange(New String() {"Feta", "Havarti", "Gruyere"})
FpSpread1.Sheets(0).Cells(1, 1).CellType = gccombo
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ListItemCollectionInfo Class
ListItemCollectionInfo Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.